import { requestWithoutToken } from "@/utils/request";
// 一级分类接口
export function getOneCategory() {
  return requestWithoutToken("/home/category/head", "get");
}
// 品牌推荐接口
export function getHotBrands(limit = 6) {
  return requestWithoutToken("/home/brand", "get", { limit });
}

// 一级类目
export function getTopCategoryById(id) {
  return requestWithoutToken("/category", "get", { id });
}

// 二及分类筛选数据
export function getSubCategoryFilterById(id) {
  return requestWithoutToken("/category/sub/filter", "get", { id });
}
//二级分类列表,--分页查询/category/goods
export function getGoodsReq(params) {
  return requestWithoutToken("category/goods", "post", params);
}
